import request from '@/utils/request'

// 查询同步参数列表
export function listCopyparam(query) {
  return request({
    url: '/copy/copyparam/list',
    method: 'get',
    params: query
  })
}

// 查询同步参数详细
export function getCopyparam(id) {
  return request({
    url: '/copy/copyparam/' + id,
    method: 'get'
  })
}

// 新增同步参数
export function addCopyparam(data) {
  return request({
    url: '/copy/copyparam',
    method: 'post',
    data: data
  })
}

// 修改同步参数
export function updateCopyparam(data) {
  return request({
    url: '/copy/copyparam',
    method: 'put',
    data: data
  })
}

// 删除同步参数
export function delCopyparam(id) {
  return request({
    url: '/copy/copyparam/' + id,
    method: 'delete'
  })
}

// 导出同步参数
export function exportCopyparam(query) {
  return request({
    url: '/copy/copyparam/export',
    method: 'get',
    params: query
  })
}